package com.fastjars.business.shiro.session;

import java.io.Serializable;

/**
 * SessionStatus
 * 用户Session状态 1：在线，2:锁定 3：离线
 * @author Brant Liu <br> 邮箱：<br>lbf1988@qq.com <br>日期：<br>2018/06/05
 * @version 1.0.0
 */
public class SessionStatus implements Serializable {
    //在线
    public static final byte SESSION_STATUS_ONLINE = 1;
    //锁定
    public static final byte SESSION_STATUS_LOCK = 2;
    //离线
    public static final byte SESSION_STATUS_LOGOUT = 3;

    /**
     * 状态
     */
    private byte onlineStatus = SESSION_STATUS_ONLINE;

    public byte getOnlineStatus() {
        return onlineStatus;
    }

    public void setOnlineStatus(byte onlineStatus) {
        this.onlineStatus = onlineStatus;
    }
}
